package com.dubbo.config;

import com.alibaba.dubbo.config.annotation.Reference;
import com.dubbo.bean.User;
import com.dubbo.provider.UserService;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * @author 吴宇~
 * @motto 我亦无他，唯手熟尔。
 * @edition jdk1.8
 * @reflection 0-1 喧闹任其喧闹，自由我自为之，我自风情万种，与世无争。
 * @date 2024/11/26/21:45
 * @target 心若有所向往，何惧道阻且长
 */
@Component
public class A implements ApplicationRunner {
    @Reference
    private UserService userService;

    public void run(ApplicationArguments args) throws Exception {
        User user = userService.getUser(1);
        System.out.println(user);
    }
}
